<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Reranker Framework (ReFr): reranker::CollectionCandidateSetIterator&lt; Collection &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Reranker Framework (ReFr)
   
   </div>
   <div id="projectbrief">Reranking framework for structure prediction and discriminative language modeling</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacereranker.html">reranker</a>      </li>
      <li class="navelem"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">CollectionCandidateSetIterator</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">reranker::CollectionCandidateSetIterator&lt; Collection &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="reranker::CollectionCandidateSetIterator" --><!-- doxytag: inherits="reranker::CandidateSetIterator" -->
<p>An implementation of the <a class="el" href="classreranker_1_1_candidate_set_iterator.html">CandidateSetIterator</a> interface that is backed by an arbitrary C++ collection of pointers to <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>&rsquo;s, where the collection&rsquo;s iterators implement the <code>ForwardIterator</code> concept.  
 <a href="classreranker_1_1_collection_candidate_set_iterator.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for reranker::CollectionCandidateSetIterator&lt; Collection &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classreranker_1_1_collection_candidate_set_iterator.png" usemap="#reranker::CollectionCandidateSetIterator&lt; Collection &gt;_map" alt=""/>
  <map id="reranker::CollectionCandidateSetIterator&lt; Collection &gt;_map" name="reranker::CollectionCandidateSetIterator&lt; Collection &gt;_map">
<area href="classreranker_1_1_candidate_set_iterator.html" title="An interface specifying iteration over CandidateSet instances, using Java-style semantics (sorry..." alt="reranker::CandidateSetIterator" shape="rect" coords="0,0,318,24"/>
</map>
 </div></div>

<p><a href="classreranker_1_1_collection_candidate_set_iterator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#aad48cd18a2a324504f97afd34f2853d2">CollectionCandidateSetIterator</a> (Collection &amp;collection)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a1f2abcc1f2b6bab9c26ab82ce80458e4">HasNext</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this iterator contains another <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>.  <a href="#a1f2abcc1f2b6bab9c26ab82ce80458e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a3e779e7be732f3a64455f5ea4b1ab78a">Next</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the next <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>.  <a href="#a3e779e7be732f3a64455f5ea4b1ab78a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a85e96a2bdf72edc6519fe52f180a6bc9">Reset</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets this iterator back to the beginning of its backing collection.  <a href="#a85e96a2bdf72edc6519fe52f180a6bc9"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Collection&gt;<br/>
class reranker::CollectionCandidateSetIterator&lt; Collection &gt;</h3>

<p>An implementation of the <a class="el" href="classreranker_1_1_candidate_set_iterator.html">CandidateSetIterator</a> interface that is backed by an arbitrary C++ collection of pointers to <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>&rsquo;s, where the collection&rsquo;s iterators implement the <code>ForwardIterator</code> concept. </p>
<dl class="attention"><dt><b>Attention:</b></dt><dd>It is a requirement of instances of this class that the backing collections do not get destroyed during the lifetime of instances of this class. If they do, then the behavior of this candidate set iterator is undefined.</dd></dl>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">Collection</td><td>the type of collection that this candidate set iterator will wrap; the <code>Collection</code> must have <code>begin</code> and <code>end</code> methods, each returning an iterator of type <code>Collection::iterator</code> that implements the <code>ForwardIterator</code> concept </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate-set-iterator_8_h_source.html#l00087">87</a> of file <a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aad48cd18a2a324504f97afd34f2853d2"></a><!-- doxytag: member="reranker::CollectionCandidateSetIterator::CollectionCandidateSetIterator" ref="aad48cd18a2a324504f97afd34f2853d2" args="(Collection &amp;collection)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">reranker::CollectionCandidateSetIterator</a>&lt; Collection &gt;::<a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">CollectionCandidateSetIterator</a> </td>
          <td>(</td>
          <td class="paramtype">Collection &amp;&#160;</td>
          <td class="paramname"><em>collection</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="candidate-set-iterator_8_h_source.html#l00089">89</a> of file <a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1f2abcc1f2b6bab9c26ab82ce80458e4"></a><!-- doxytag: member="reranker::CollectionCandidateSetIterator::HasNext" ref="a1f2abcc1f2b6bab9c26ab82ce80458e4" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">reranker::CollectionCandidateSetIterator</a>&lt; Collection &gt;::<a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a1f2abcc1f2b6bab9c26ab82ce80458e4">HasNext</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether this iterator contains another <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>. </p>

<p>Implements <a class="el" href="classreranker_1_1_candidate_set_iterator.html#a82457e09d587f9e83ef3db066e8ac485">reranker::CandidateSetIterator</a>.</p>

<p>Definition at line <a class="el" href="candidate-set-iterator_8_h_source.html#l00094">94</a> of file <a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>.</p>

</div>
</div>
<a class="anchor" id="a3e779e7be732f3a64455f5ea4b1ab78a"></a><!-- doxytag: member="reranker::CollectionCandidateSetIterator::Next" ref="a3e779e7be732f3a64455f5ea4b1ab78a" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>&amp; <a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">reranker::CollectionCandidateSetIterator</a>&lt; Collection &gt;::<a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a3e779e7be732f3a64455f5ea4b1ab78a">Next</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the next <a class="el" href="classreranker_1_1_candidate_set.html">CandidateSet</a>. </p>

<p>Implements <a class="el" href="classreranker_1_1_candidate_set_iterator.html#aa318e5cebc531e88bce5f6d9077f41ee">reranker::CandidateSetIterator</a>.</p>

<p>Definition at line <a class="el" href="candidate-set-iterator_8_h_source.html#l00095">95</a> of file <a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>.</p>

</div>
</div>
<a class="anchor" id="a85e96a2bdf72edc6519fe52f180a6bc9"></a><!-- doxytag: member="reranker::CollectionCandidateSetIterator::Reset" ref="a85e96a2bdf72edc6519fe52f180a6bc9" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Collection &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html">reranker::CollectionCandidateSetIterator</a>&lt; Collection &gt;::<a class="el" href="classreranker_1_1_collection_candidate_set_iterator.html#a85e96a2bdf72edc6519fe52f180a6bc9">Reset</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resets this iterator back to the beginning of its backing collection. </p>

<p>Implements <a class="el" href="classreranker_1_1_candidate_set_iterator.html#a10751b02e9aa29e8f2a1c76085b661ac">reranker::CandidateSetIterator</a>.</p>

<p>Definition at line <a class="el" href="candidate-set-iterator_8_h_source.html#l00096">96</a> of file <a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="candidate-set-iterator_8_h_source.html">candidate-set-iterator.H</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Apr 9 2013 11:56:30 for Reranker Framework (ReFr) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
